package com.yycx.module.bus.client.entity.hy;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 商品全局政策
 *
 * @author flyme
 * @date 2023-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_policy_drug")
@TableAlias("bpd")
@ApiModel(value = "BusPolicyDrug对象", description = "商品全局政策")
public class BusPolicyDrug extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "policyDrugId", type = IdType.ASSIGN_ID)
    private Long policyDrugId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "商品名称")
    private String drugsName;

    @ApiModelProperty(value = "自定义编码")
    private String drugCode;

    @ApiModelProperty(value = "规格")
    private String drugsSpec;

    @ApiModelProperty(value = "件容")
    private Integer drugJr;

    @ApiModelProperty(value = "商品单位")
    private String drugUnit;

    @ApiModelProperty(value = "部门结算价")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal deptPrice;

    @ApiModelProperty(value = "部门结算费率")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal deptRate;

    @ApiModelProperty(value = "部门结算公式内容")
    private String deptSettleFormula;

    @ApiModelProperty(value = "部门利润公式内容")
    private String deptProfitAmountFormula;

    @ApiModelProperty(value = "生产企业")
    private String producersName;

    @ApiModelProperty(value = "供货商")
    private String supplierName;


    @ApiModelProperty(value = "商品类型")
    private String drugType;

    @ApiModelProperty(value = "底价方式")
    private Integer floorPriceType;

    @ApiModelProperty(value = "状态")
    private Integer drugState;


    @ApiModelProperty(value = "备注")
    private String remark;
}
